/**
 * Craeted with IntelliJ IDEA.
 * Description:
 * User:23687
 * Date:2024-09-25
 * Time:9:27
 */

import java.util.Scanner;
public class TestDemo {
    public static int max2(int num1,int num2){
        if(num1<=num2){
            return num2;
        }
        else{
            return num1;
        }
    }
    public static int max3(int max2,int num3){
        if(max2<=num3){
            return num3;
        }
        else{
            return max2;
        }
    }
    /*public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num1 = sc.nextInt();
        int num2 = sc.nextInt();
        System.out.println(max2(num1, num2));
        int num3 = sc.nextInt();
        System.out.println(max3(max2(num1, num2), num3));
    }*/

        public static int max(int a,int b){
            return a>b?a:b;
        }
        public static double max(double a,double b,double c){
            return a > b ? (a > c ? a : c) : (b > c ? b : c);
        }

        public static void main(String[] args){     //方法的重载
            Scanner sc=new Scanner(System.in);
            System.out.println("请输入俩个整数：");
            int num1=sc.nextInt();
            int num2=sc.nextInt();
            System.out.println(max(num1,num2));
            System.out.println("请输入三个小数：");
            double num3=sc.nextDouble();
            double num4=sc.nextDouble();
            double num5=sc.nextDouble();
            System.out.println(max(num3,num4,num3));
        }

}
